.project-structure-container {
    .project-overview {
        margin-bottom: 24px;

        .overview-alert {
            border-radius: 8px;
            
            .ant-alert-message {
                font-size: 16px;
                font-weight: 500;
                margin-bottom: 8px;
            }

            .tech-tags {
                margin-top: 16px;
                
                .ant-tag {
                    margin-bottom: 8px;
                    padding: 4px 8px;
                    font-size: 13px;
                    border-radius: 4px;
                    
                    &:hover {
                        opacity: 0.8;
                    }
                }
            }
        }
    }
}

.project-structure-page {
    .project-structure {
        margin-bottom: 24px;
        
        @media (max-width: 768px) {
            margin-bottom: 16px;
        }

        .ant-card-body {
            padding: 16px;
        }

        .ant-typography {
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }

        .search-input {
            margin-bottom: 16px;

            .ant-input-search-button {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        .search-results {
            margin-bottom: 16px;
            padding: 12px;
            background-color: #f5f5f5;
            border-radius: 4px;

            .ant-typography {
                margin-bottom: 8px;
                padding-bottom: 8px;
                border-bottom: 1px dashed #d9d9d9;
            }

            .search-result-item {
                padding: 4px 8px;
                margin-bottom: 4px;
                border-radius: 4px;
                cursor: pointer;
                transition: all 0.3s;

                &:hover {
                    background-color: rgba(24, 144, 255, 0.1);
                }

                &:last-child {
                    margin-bottom: 0;
                }

                .ant-typography {
                    margin-bottom: 0;
                    padding-bottom: 0;
                    border-bottom: none;
                    color: rgba(0, 0, 0, 0.65);
                    font-size: 13px;
                }
            }
        }

        .ant-tree {
            background: transparent;

            .ant-tree-node-content-wrapper {
                transition: all 0.3s;
                padding: 4px 8px;
                border-radius: 4px;

                &:hover {
                    background-color: rgba(0, 0, 0, 0.04);
                }

                &.ant-tree-node-selected {
                    background-color: rgba(24, 144, 255, 0.15);
                }
            }

            .anticon {
                &.anticon-folder {
                    color: #ffd666;
                }
                &.anticon-file {
                    color: #69c0ff;
                }
                &.anticon-code {
                    color: #b37feb;
                }
                &.anticon-layout {
                    color: #95de64;
                }
                &.anticon-api {
                    color: #ff85c0;
                }
                &.anticon-global {
                    color: #40a9ff;
                }
                &.anticon-tool {
                    color: #ffa940;
                }
                &.anticon-user {
                    color: #73d13d;
                }
                &.anticon-database {
                    color: #ff7a45;
                }
            }

            .ant-tree-title {
                color: rgba(0, 0, 0, 0.85);
                font-size: 14px;
                margin-left: 8px;
            }

            .ant-tree-switcher {
                background: transparent;
            }
        }
    }

    .content-display {
        height: 100%;
        
        @media (max-width: 768px) {
            min-height: 400px;
        }

        .ant-card-body {
            padding: 24px;
            
            @media (max-width: 768px) {
                padding: 16px;
            }
        }

        .content-area {
            h5.ant-typography {
                margin-bottom: 16px;
                font-weight: 600;
                color: #1890ff;
                font-size: 18px;
            }

            .ant-typography {
                margin-bottom: 16px;
                line-height: 1.8;
            }

            ul {
                list-style: none;
                padding-left: 0;
                margin-bottom: 24px;

                li {
                    position: relative;
                    padding-left: 20px;
                    margin-bottom: 12px;
                    color: rgba(0, 0, 0, 0.85);
                    line-height: 1.6;

                    &::before {
                        content: '';
                        position: absolute;
                        left: 0;
                        top: 8px;
                        width: 6px;
                        height: 6px;
                        background-color: #1890ff;
                        border-radius: 50%;
                    }

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }

        .ant-empty {
            margin: 48px 0;
            
            .ant-empty-description {
                .ant-typography {
                    font-size: 13px;
                    margin-top: 8px;
                }
            }
        }
    }
}

// 暗色主题支持
[data-theme='dark'] {
    .project-structure-container {
        .project-overview {
            .overview-alert {
                background-color: rgba(255, 255, 255, 0.04);
                border-color: rgba(255, 255, 255, 0.15);

                .ant-alert-message {
                    color: rgba(255, 255, 255, 0.85);
                }

                .ant-alert-description {
                    color: rgba(255, 255, 255, 0.65);
                }
            }
        }
    }

    .project-structure-page {
        .project-structure {
            .ant-typography {
                color: rgba(255, 255, 255, 0.85);
                border-bottom-color: rgba(255, 255, 255, 0.15);
            }

            .search-results {
                background-color: rgba(255, 255, 255, 0.04);

                .search-result-item {
                    &:hover {
                        background-color: rgba(255, 255, 255, 0.08);
                    }

                    .ant-typography {
                        color: rgba(255, 255, 255, 0.65);
                        border-bottom: none;
                    }
                }
            }

            .ant-tree {
                .ant-tree-node-content-wrapper {
                    &:hover {
                        background-color: rgba(255, 255, 255, 0.08);
                        
                        .ant-tree-title {
                            color: rgba(255, 255, 255, 1);
                        }
                    }

                    &.ant-tree-node-selected {
                        background-color: rgba(24, 144, 255, 0.25);
                        
                        .ant-tree-title {
                            color: rgba(255, 255, 255, 1);
                            font-weight: 500;
                        }
                    }
                }

                .ant-tree-title {
                    color: rgba(255, 255, 255, 0.85);
                    transition: color 0.3s;
                }
            }
        }

        .content-display {
            .content-area {
                h5.ant-typography {
                    color: #40a9ff;
                }

                .ant-typography {
                    color: rgba(255, 255, 255, 0.85);
                }

                ul {
                    li {
                        color: rgba(255, 255, 255, 0.85);

                        &::before {
                            background-color: #40a9ff;
                        }

                        strong {
                            color: #40a9ff;
                        }
                    }

                    ul li {
                        color: rgba(255, 255, 255, 0.65);
                    }
                }

                pre, code {
                    background-color: rgba(255, 255, 255, 0.04);
                    border-color: rgba(255, 255, 255, 0.15);
                }

                .ant-typography-secondary {
                    color: rgba(255, 255, 255, 0.45);
                    background-color: rgba(255, 255, 255, 0.04);
                    padding: 16px;
                    border-radius: 4px;
                    border: 1px solid rgba(255, 255, 255, 0.15);
                }
            }

            .ant-empty {
                .ant-empty-description {
                    color: rgba(255, 255, 255, 0.85);
                    
                    .ant-typography {
                        color: rgba(255, 255, 255, 0.45);
                    }
                }
            }
        }
    }
} 